import prompt from '@system.prompt';
export default {
    data: {
        title: "",
        pinggu_statu:false,
        start_button_uri_list:["/common/images1/zanting.png","/common/images1/kaishi.png"],
        start_button_uri:"/common/images1/kaishi.png",
        start_button_text_list:["评估暂停","评估开始"],
        start_button_text:"评估开始",
        tishi_text_list:["评估中","未开始"],
        tishi_text:"未开始",
        daojishi_number:300
    },
    onInit() {
        this.title = "Hello World";
    },
    start_pinggu(){
        this.pinggu_statu = !this.pinggu_statu
        if(this.pinggu_statu){
            this.start_button_uri = this.start_button_uri_list[0],
            this.start_button_text = this.start_button_text_list[0],
            this.tishi_text = this.tishi_text_list[0]
            prompt.showToast({
                message:"评估开始",
                duration:2000
            })
        }else{
            this.start_button_uri = this.start_button_uri_list[1],
            this.start_button_text = this.start_button_text_list[1],
            this.tishi_text = this.tishi_text_list[1]
            prompt.showToast({
                message:"评估暂停",
                duration:2000
            })
        }
    }
}
